//
//  UIButton+YsToolsManager.h
//  YsToolsManager
//
//  Created by 宋宏康 on 2020/3/20.
//

#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN

@interface UIButton (YsToolsManager)
/**
 快速创建button

 @param title title description
 @param backColor backColor description
 @param backImageName backImageName description
 @param color color description
 @param fontSize fontSize description
 @param cornerRadius cornerRadius description
 @return return value description
 */
+(instancetype _Nonnull )buttonWithTitle:(NSString *_Nonnull)title
                        backColor:(UIColor *_Nonnull)backColor
                    backImageName:(NSString *_Nonnull)backImageName
                       titleColor:(UIColor *_Nonnull)color
                         fontSize:(int)fontSize
                     cornerRadius:(CGFloat)cornerRadius;


/**
 快速创建button

 @param title title description
 @param fontSize fontSize description
 @param titleColor titleColor description
 @return return value description
 */
+ (instancetype _Nonnull )buttonWithTitle:(NSString *_Nonnull)title
                          fontSize:(CGFloat)fontSize
                                  titleColor:(UIColor *_Nonnull)titleColor;


/**
 快速创建button

 @param title title description
 @param backColor backColor description
 @param color color description
 @param fontSize fontSize description
 @param cornerRadius cornerRadius description
 @return return value description
 */
+(instancetype _Nonnull )buttonWithTitle:(NSString *_Nonnull)title
                                  backColor:(UIColor *_Nonnull)backColor
                                 titleColor:(UIColor *_Nonnull)color
                         fontSize:(int)fontSize
                     cornerRadius:(CGFloat)cornerRadius;

/**
  快速创建button

 @param normalImage normalImage description
 @param selectImage selectImage description
 @param backColor backColor description
 @return return value description
 */
+ (instancetype _Nonnull )buttonWithNormalImage:(UIImage *_Nonnull)normalImage
                                       selectImage:(UIImage *_Nonnull)selectImage
                                         backColor:(UIColor *_Nonnull)backColor;
@end

NS_ASSUME_NONNULL_END
